/**
 * ANNCSR (2010-2011)
 */
package net.abbp.mtr.control;

import java.awt.Dimension;
import java.util.Calendar;
import java.util.Date;

import javax.swing.JSpinner;
import javax.swing.SpinnerDateModel;

/**
 * 日期选择
 * 
 * @version 1.0 2010-12-18
 * @author lexloo(lexloo@gmail.com)
 * @since MTR 1.0
 */
public class DateSelect extends JSpinner {
    /**
     * UID
     */
    private static final long serialVersionUID = 2216996208261133112L;

    public DateSelect() {
        Date date = new Date();
        this.setModel(new SpinnerDateModel(date, null, date, Calendar.DAY_OF_MONTH));
        this.setEditor(new DateEditor(this, "yyyy年MM月dd日"));
        this.setPreferredSize(new Dimension(132, 22));
    }
}
